/*
 * Copyright 2024 NXP
 * NXP Confidential and Proprietary. This software is owned or controlled by NXP and may only be used strictly in
 * accordance with the applicable license terms. By expressly accepting such terms or by downloading, installing,
 * activating and/or otherwise using the software, you are agreeing that you have read, and that you agree to
 * comply with and are bound by, such license terms.  If you do not agree to be bound by the applicable license
 * terms, then you may not retain, install, activate or otherwise use the software.
 */

#include "lvgl.h"
#include <stdio.h>
#include "gui_guider.h"
#include "events_init.h"
#include "widgets_init.h"
#include "custom.h"

void setup_scr_Main(lv_ui *ui)
{
	// Write codes Main
	ui->Main = lv_obj_create(NULL);
	ui->g_kb_Main = lv_keyboard_create(ui->Main);
	lv_obj_add_event_cb(ui->g_kb_Main, kb_event_cb, LV_EVENT_ALL, NULL);
	lv_obj_add_flag(ui->g_kb_Main, LV_OBJ_FLAG_HIDDEN);
	lv_obj_set_style_text_font(ui->g_kb_Main, &lv_font_misans_20, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_size(ui->Main, 800, 480);
	lv_obj_set_scrollbar_mode(ui->Main, LV_SCROLLBAR_MODE_OFF);

	// Write style for Main, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
	lv_obj_set_style_bg_opa(ui->Main, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_bg_color(ui->Main, lv_color_hex(0xffffff), LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_bg_grad_dir(ui->Main, LV_GRAD_DIR_NONE, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_bg_img_src(ui->Main, &_logo_3SE_800x480, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_bg_img_opa(ui->Main, 255, LV_PART_MAIN | LV_STATE_DEFAULT);

	// Write codes Main_MainView
	ui->Main_MainView = lv_tabview_create(ui->Main, LV_DIR_LEFT, 60);
	lv_obj_set_pos(ui->Main_MainView, 15, 65);
	lv_obj_set_size(ui->Main_MainView, 780, 405);
	lv_obj_set_scrollbar_mode(ui->Main_MainView, LV_SCROLLBAR_MODE_ACTIVE);

	// Write style for Main_MainView, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
	lv_obj_set_style_bg_opa(ui->Main_MainView, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_text_color(ui->Main_MainView, lv_color_hex(0xffffff), LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_text_font(ui->Main_MainView, &lv_font_misans_12, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_text_opa(ui->Main_MainView, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_text_letter_space(ui->Main_MainView, 2, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_text_line_space(ui->Main_MainView, 16, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_border_width(ui->Main_MainView, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_radius(ui->Main_MainView, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_shadow_width(ui->Main_MainView, 0, LV_PART_MAIN | LV_STATE_DEFAULT);

	// Write style state: LV_STATE_DEFAULT for &style_Main_MainView_extra_btnm_main_default
	static lv_style_t style_Main_MainView_extra_btnm_main_default;
	ui_init_style(&style_Main_MainView_extra_btnm_main_default);

	lv_style_set_bg_opa(&style_Main_MainView_extra_btnm_main_default, 124);
	lv_style_set_bg_color(&style_Main_MainView_extra_btnm_main_default, lv_color_hex(0x5a6173));
	lv_style_set_bg_grad_dir(&style_Main_MainView_extra_btnm_main_default, LV_GRAD_DIR_NONE);
	lv_style_set_border_width(&style_Main_MainView_extra_btnm_main_default, 0);
	lv_style_set_radius(&style_Main_MainView_extra_btnm_main_default, 12);
	lv_obj_add_style(lv_tabview_get_tab_btns(ui->Main_MainView), &style_Main_MainView_extra_btnm_main_default, LV_PART_MAIN | LV_STATE_DEFAULT);

	// Write style state: LV_STATE_DEFAULT for &style_Main_MainView_extra_btnm_items_default
	static lv_style_t style_Main_MainView_extra_btnm_items_default;
	ui_init_style(&style_Main_MainView_extra_btnm_items_default);

	lv_style_set_text_color(&style_Main_MainView_extra_btnm_items_default, lv_color_hex(0xffffff));
	lv_style_set_text_font(&style_Main_MainView_extra_btnm_items_default, &lv_font_misans_20);
	lv_style_set_text_opa(&style_Main_MainView_extra_btnm_items_default, 255);
	lv_obj_add_style(lv_tabview_get_tab_btns(ui->Main_MainView), &style_Main_MainView_extra_btnm_items_default, LV_PART_ITEMS | LV_STATE_DEFAULT);

	// Write style state: LV_STATE_CHECKED for &style_Main_MainView_extra_btnm_items_checked
	static lv_style_t style_Main_MainView_extra_btnm_items_checked;
	ui_init_style(&style_Main_MainView_extra_btnm_items_checked);

	lv_style_set_text_color(&style_Main_MainView_extra_btnm_items_checked, lv_color_hex(0xcc9d11));
	lv_style_set_text_font(&style_Main_MainView_extra_btnm_items_checked, &lv_font_misans_20);
	lv_style_set_text_opa(&style_Main_MainView_extra_btnm_items_checked, 255);
	lv_style_set_border_width(&style_Main_MainView_extra_btnm_items_checked, 4);
	lv_style_set_border_opa(&style_Main_MainView_extra_btnm_items_checked, 255);
	lv_style_set_border_color(&style_Main_MainView_extra_btnm_items_checked, lv_color_hex(0xccac11));
	lv_style_set_border_side(&style_Main_MainView_extra_btnm_items_checked, LV_BORDER_SIDE_RIGHT);
	lv_style_set_radius(&style_Main_MainView_extra_btnm_items_checked, 0);
	lv_style_set_bg_opa(&style_Main_MainView_extra_btnm_items_checked, 82);
	lv_style_set_bg_color(&style_Main_MainView_extra_btnm_items_checked, lv_color_hex(0x151402));
	lv_style_set_bg_grad_dir(&style_Main_MainView_extra_btnm_items_checked, LV_GRAD_DIR_NONE);
	lv_obj_add_style(lv_tabview_get_tab_btns(ui->Main_MainView), &style_Main_MainView_extra_btnm_items_checked, LV_PART_ITEMS | LV_STATE_CHECKED);

	// Write codes 总控
	ui->Main_MainView_tab_1 = lv_tabview_add_tab(ui->Main_MainView, "总控");
	lv_obj_t *Main_MainView_tab_1_label = lv_label_create(ui->Main_MainView_tab_1);
	lv_label_set_text(Main_MainView_tab_1_label, "");

	// Write codes Main_label_2
	ui->Main_label_2 = lv_label_create(ui->Main_MainView_tab_1);
	lv_label_set_text(ui->Main_label_2, "在线飞镖配置");
	lv_label_set_long_mode(ui->Main_label_2, LV_LABEL_LONG_WRAP);
	lv_obj_set_pos(ui->Main_label_2, 23, 129);
	lv_obj_set_size(ui->Main_label_2, 302, 39);

	// Write style for Main_label_2, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
	lv_obj_set_style_border_width(ui->Main_label_2, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_radius(ui->Main_label_2, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_text_color(ui->Main_label_2, lv_color_hex(0xdcdcdc), LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_text_font(ui->Main_label_2, &lv_font_misans_20, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_text_opa(ui->Main_label_2, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_text_letter_space(ui->Main_label_2, 2, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_text_line_space(ui->Main_label_2, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_text_align(ui->Main_label_2, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_bg_opa(ui->Main_label_2, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_pad_top(ui->Main_label_2, 8, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_pad_right(ui->Main_label_2, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_pad_bottom(ui->Main_label_2, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_pad_left(ui->Main_label_2, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_shadow_width(ui->Main_label_2, 0, LV_PART_MAIN | LV_STATE_DEFAULT);

	// Write codes Main_btnAllOff
	ui->Main_btnAllOff = lv_btn_create(ui->Main_MainView_tab_1);
	ui->Main_btnAllOff_label = lv_label_create(ui->Main_btnAllOff);
	lv_label_set_text(ui->Main_btnAllOff_label, "总关");
	lv_label_set_long_mode(ui->Main_btnAllOff_label, LV_LABEL_LONG_WRAP);
	lv_obj_align(ui->Main_btnAllOff_label, LV_ALIGN_CENTER, 0, 0);
	lv_obj_set_style_pad_all(ui->Main_btnAllOff, 0, LV_STATE_DEFAULT);
	lv_obj_set_width(ui->Main_btnAllOff_label, LV_PCT(100));
	lv_obj_set_pos(ui->Main_btnAllOff, 250, 172);
	lv_obj_set_size(ui->Main_btnAllOff, 200, 90);

	// Write style for Main_btnAllOff, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
	lv_obj_set_style_bg_opa(ui->Main_btnAllOff, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_bg_color(ui->Main_btnAllOff, lv_color_hex(0x2f2fc9), LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_bg_grad_dir(ui->Main_btnAllOff, LV_GRAD_DIR_NONE, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_border_width(ui->Main_btnAllOff, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_radius(ui->Main_btnAllOff, 16, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_shadow_width(ui->Main_btnAllOff, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_text_color(ui->Main_btnAllOff, lv_color_hex(0xffffff), LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_text_font(ui->Main_btnAllOff, &lv_font_misans_24, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_text_opa(ui->Main_btnAllOff, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_text_align(ui->Main_btnAllOff, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN | LV_STATE_DEFAULT);

	// Write style for Main_btnAllOff, Part: LV_PART_MAIN, State: LV_STATE_FOCUSED.
	lv_obj_set_style_bg_opa(ui->Main_btnAllOff, 255, LV_PART_MAIN | LV_STATE_FOCUSED);
	lv_obj_set_style_bg_color(ui->Main_btnAllOff, lv_color_hex(0x2F2FC9), LV_PART_MAIN | LV_STATE_FOCUSED);
	lv_obj_set_style_bg_grad_dir(ui->Main_btnAllOff, LV_GRAD_DIR_NONE, LV_PART_MAIN | LV_STATE_FOCUSED);
	lv_obj_set_style_border_width(ui->Main_btnAllOff, 0, LV_PART_MAIN | LV_STATE_FOCUSED);
	lv_obj_set_style_radius(ui->Main_btnAllOff, 16, LV_PART_MAIN | LV_STATE_FOCUSED);
	lv_obj_set_style_shadow_width(ui->Main_btnAllOff, 0, LV_PART_MAIN | LV_STATE_FOCUSED);
	lv_obj_set_style_text_color(ui->Main_btnAllOff, lv_color_hex(0xffffff), LV_PART_MAIN | LV_STATE_FOCUSED);
	lv_obj_set_style_text_font(ui->Main_btnAllOff, &lv_font_misans_24, LV_PART_MAIN | LV_STATE_FOCUSED);
	lv_obj_set_style_text_opa(ui->Main_btnAllOff, 255, LV_PART_MAIN | LV_STATE_FOCUSED);

	// Write style for Main_btnAllOff, Part: LV_PART_MAIN, State: LV_STATE_PRESSED.
	lv_obj_set_style_bg_opa(ui->Main_btnAllOff, 255, LV_PART_MAIN | LV_STATE_PRESSED);
	lv_obj_set_style_bg_color(ui->Main_btnAllOff, lv_color_hex(0x4296fe), LV_PART_MAIN | LV_STATE_PRESSED);
	lv_obj_set_style_bg_grad_dir(ui->Main_btnAllOff, LV_GRAD_DIR_NONE, LV_PART_MAIN | LV_STATE_PRESSED);
	lv_obj_set_style_border_width(ui->Main_btnAllOff, 0, LV_PART_MAIN | LV_STATE_PRESSED);
	lv_obj_set_style_radius(ui->Main_btnAllOff, 16, LV_PART_MAIN | LV_STATE_PRESSED);
	lv_obj_set_style_shadow_width(ui->Main_btnAllOff, 0, LV_PART_MAIN | LV_STATE_PRESSED);
	lv_obj_set_style_text_color(ui->Main_btnAllOff, lv_color_hex(0xffffff), LV_PART_MAIN | LV_STATE_PRESSED);
	lv_obj_set_style_text_font(ui->Main_btnAllOff, &lv_font_misans_24, LV_PART_MAIN | LV_STATE_PRESSED);
	lv_obj_set_style_text_opa(ui->Main_btnAllOff, 255, LV_PART_MAIN | LV_STATE_PRESSED);

	// Write codes Main_btnAllOn
	ui->Main_btnAllOn = lv_btn_create(ui->Main_MainView_tab_1);
	ui->Main_btnAllOn_label = lv_label_create(ui->Main_btnAllOn);
	lv_label_set_text(ui->Main_btnAllOn_label, "总开");
	lv_label_set_long_mode(ui->Main_btnAllOn_label, LV_LABEL_LONG_WRAP);
	lv_obj_align(ui->Main_btnAllOn_label, LV_ALIGN_CENTER, 0, 0);
	lv_obj_set_style_pad_all(ui->Main_btnAllOn, 0, LV_STATE_DEFAULT);
	lv_obj_set_width(ui->Main_btnAllOn_label, LV_PCT(100));
	lv_obj_set_pos(ui->Main_btnAllOn, 23, 172);
	lv_obj_set_size(ui->Main_btnAllOn, 200, 90);

	// Write style for Main_btnAllOn, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
	lv_obj_set_style_bg_opa(ui->Main_btnAllOn, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_bg_color(ui->Main_btnAllOn, lv_color_hex(0xb66d1b), LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_bg_grad_dir(ui->Main_btnAllOn, LV_GRAD_DIR_NONE, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_border_width(ui->Main_btnAllOn, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_radius(ui->Main_btnAllOn, 16, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_shadow_width(ui->Main_btnAllOn, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_text_color(ui->Main_btnAllOn, lv_color_hex(0xffffff), LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_text_font(ui->Main_btnAllOn, &lv_font_misans_24, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_text_opa(ui->Main_btnAllOn, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_text_align(ui->Main_btnAllOn, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN | LV_STATE_DEFAULT);

	// Write codes Main_barOnline
	ui->Main_barOnline = lv_bar_create(ui->Main_MainView_tab_1);
	lv_obj_set_style_anim_time(ui->Main_barOnline, 970, 0);
	lv_bar_set_mode(ui->Main_barOnline, LV_BAR_MODE_NORMAL);
	lv_bar_set_range(ui->Main_barOnline, 0, 100);
	lv_bar_set_value(ui->Main_barOnline, 0, LV_ANIM_ON);
	lv_obj_set_pos(ui->Main_barOnline, 25, 70);
	lv_obj_set_size(ui->Main_barOnline, 280, 23);

	// Write style for Main_barOnline, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
	lv_obj_set_style_bg_opa(ui->Main_barOnline, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_bg_color(ui->Main_barOnline, lv_color_hex(0x393c41), LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_bg_grad_dir(ui->Main_barOnline, LV_GRAD_DIR_NONE, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_radius(ui->Main_barOnline, 10, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_shadow_width(ui->Main_barOnline, 0, LV_PART_MAIN | LV_STATE_DEFAULT);

	// Write style for Main_barOnline, Part: LV_PART_INDICATOR, State: LV_STATE_DEFAULT.
	lv_obj_set_style_bg_opa(ui->Main_barOnline, 255, LV_PART_INDICATOR | LV_STATE_DEFAULT);
	lv_obj_set_style_bg_color(ui->Main_barOnline, lv_color_hex(0x00a1b5), LV_PART_INDICATOR | LV_STATE_DEFAULT);
	lv_obj_set_style_bg_grad_dir(ui->Main_barOnline, LV_GRAD_DIR_NONE, LV_PART_INDICATOR | LV_STATE_DEFAULT);
	lv_obj_set_style_radius(ui->Main_barOnline, 10, LV_PART_INDICATOR | LV_STATE_DEFAULT);

	// Write codes Main_label_5
	ui->Main_label_5 = lv_label_create(ui->Main_MainView_tab_1);
	lv_label_set_text(ui->Main_label_5, "信息速览");
	lv_label_set_long_mode(ui->Main_label_5, LV_LABEL_LONG_WRAP);
	lv_obj_set_pos(ui->Main_label_5, 501, 13);
	lv_obj_set_size(ui->Main_label_5, 149, 32);

	// Write style for Main_label_5, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
	lv_obj_set_style_border_width(ui->Main_label_5, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_radius(ui->Main_label_5, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_text_color(ui->Main_label_5, lv_color_hex(0xdcdcdc), LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_text_font(ui->Main_label_5, &lv_font_misans_20, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_text_opa(ui->Main_label_5, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_text_letter_space(ui->Main_label_5, 2, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_text_line_space(ui->Main_label_5, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_text_align(ui->Main_label_5, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_bg_opa(ui->Main_label_5, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_pad_top(ui->Main_label_5, 8, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_pad_right(ui->Main_label_5, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_pad_bottom(ui->Main_label_5, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_pad_left(ui->Main_label_5, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_shadow_width(ui->Main_label_5, 0, LV_PART_MAIN | LV_STATE_DEFAULT);

	// Write codes Main_labelPDInfo
	ui->Main_labelPDInfo = lv_label_create(ui->Main_MainView_tab_1);
	lv_label_set_text(ui->Main_labelPDInfo, "20V/60W");
	lv_label_set_long_mode(ui->Main_labelPDInfo, LV_LABEL_LONG_WRAP);
	lv_obj_set_pos(ui->Main_labelPDInfo, 193, 295);
	lv_obj_set_size(ui->Main_labelPDInfo, 235, 46);
	lv_obj_add_flag(ui->Main_labelPDInfo, LV_OBJ_FLAG_CLICKABLE);

	// Write style for Main_labelPDInfo, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
	lv_obj_set_style_border_width(ui->Main_labelPDInfo, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_radius(ui->Main_labelPDInfo, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_text_color(ui->Main_labelPDInfo, lv_color_hex(0x00a1b5), LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_text_font(ui->Main_labelPDInfo, &lv_font_misans_36, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_text_opa(ui->Main_labelPDInfo, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_text_letter_space(ui->Main_labelPDInfo, 2, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_text_line_space(ui->Main_labelPDInfo, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_text_align(ui->Main_labelPDInfo, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_bg_opa(ui->Main_labelPDInfo, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_pad_top(ui->Main_labelPDInfo, 8, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_pad_right(ui->Main_labelPDInfo, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_pad_bottom(ui->Main_labelPDInfo, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_pad_left(ui->Main_labelPDInfo, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_shadow_width(ui->Main_labelPDInfo, 0, LV_PART_MAIN | LV_STATE_DEFAULT);

	// Write codes Main_label_6
	ui->Main_label_6 = lv_label_create(ui->Main_MainView_tab_1);
	lv_label_set_text(ui->Main_label_6, "PD电源");
	lv_label_set_long_mode(ui->Main_label_6, LV_LABEL_LONG_WRAP);
	lv_obj_set_pos(ui->Main_label_6, 25, 302);
	lv_obj_set_size(ui->Main_label_6, 77, 39);

	// Write style for Main_label_6, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
	lv_obj_set_style_border_width(ui->Main_label_6, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_radius(ui->Main_label_6, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_text_color(ui->Main_label_6, lv_color_hex(0xdcdcdc), LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_text_font(ui->Main_label_6, &lv_font_misans_20, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_text_opa(ui->Main_label_6, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_text_letter_space(ui->Main_label_6, 2, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_text_line_space(ui->Main_label_6, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_text_align(ui->Main_label_6, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_bg_opa(ui->Main_label_6, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_pad_top(ui->Main_label_6, 8, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_pad_right(ui->Main_label_6, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_pad_bottom(ui->Main_label_6, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_pad_left(ui->Main_label_6, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_shadow_width(ui->Main_label_6, 0, LV_PART_MAIN | LV_STATE_DEFAULT);

	// Write codes Main_cont_1
	ui->Main_cont_1 = lv_obj_create(ui->Main_MainView_tab_1);
	lv_obj_set_pos(ui->Main_cont_1, 494, 62);
	lv_obj_set_size(ui->Main_cont_1, 668, 262);
	lv_obj_set_scrollbar_mode(ui->Main_cont_1, LV_SCROLLBAR_MODE_ACTIVE);

	// Write style for Main_cont_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
	lv_obj_set_style_border_width(ui->Main_cont_1, 2, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_border_opa(ui->Main_cont_1, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_border_color(ui->Main_cont_1, lv_color_hex(0x2195f6), LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_border_side(ui->Main_cont_1, LV_BORDER_SIDE_NONE, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_radius(ui->Main_cont_1, 6, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_bg_opa(ui->Main_cont_1, 235, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_bg_color(ui->Main_cont_1, lv_color_hex(0xffffff), LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_bg_grad_dir(ui->Main_cont_1, LV_GRAD_DIR_NONE, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_pad_top(ui->Main_cont_1, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_pad_bottom(ui->Main_cont_1, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_pad_left(ui->Main_cont_1, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_pad_right(ui->Main_cont_1, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_shadow_width(ui->Main_cont_1, 10, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_shadow_color(ui->Main_cont_1, lv_color_hex(0x000000), LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_shadow_opa(ui->Main_cont_1, 161, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_shadow_spread(ui->Main_cont_1, 2, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_shadow_ofs_x(ui->Main_cont_1, 5, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_shadow_ofs_y(ui->Main_cont_1, 5, LV_PART_MAIN | LV_STATE_DEFAULT);

	// Write codes Main_labelWarnings
	ui->Main_labelWarnings = lv_label_create(ui->Main_cont_1);
	lv_label_set_text(ui->Main_labelWarnings, "");
	lv_label_set_long_mode(ui->Main_labelWarnings, LV_LABEL_LONG_SCROLL);
	lv_obj_set_pos(ui->Main_labelWarnings, 28, 25);
	lv_obj_set_size(ui->Main_labelWarnings, 613, 638);

	// Write style for Main_labelWarnings, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
	lv_obj_set_style_border_width(ui->Main_labelWarnings, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_radius(ui->Main_labelWarnings, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_text_color(ui->Main_labelWarnings, lv_color_hex(0xB01A9F), LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_text_font(ui->Main_labelWarnings, &lv_font_misans_20, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_text_opa(ui->Main_labelWarnings, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_text_letter_space(ui->Main_labelWarnings, 2, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_text_line_space(ui->Main_labelWarnings, 10, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_text_align(ui->Main_labelWarnings, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_bg_opa(ui->Main_labelWarnings, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_pad_top(ui->Main_labelWarnings, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_pad_right(ui->Main_labelWarnings, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_pad_bottom(ui->Main_labelWarnings, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_pad_left(ui->Main_labelWarnings, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_shadow_width(ui->Main_labelWarnings, 0, LV_PART_MAIN | LV_STATE_DEFAULT);

	// Write codes Main_label_8
	ui->Main_label_8 = lv_label_create(ui->Main_MainView_tab_1);
	lv_label_set_text(ui->Main_label_8, "已充满/正在充电");
	lv_label_set_long_mode(ui->Main_label_8, LV_LABEL_LONG_WRAP);
	lv_obj_set_pos(ui->Main_label_8, 24, 27);
	lv_obj_set_size(ui->Main_label_8, 182, 37);

	// Write style for Main_label_8, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
	lv_obj_set_style_border_width(ui->Main_label_8, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_radius(ui->Main_label_8, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_text_color(ui->Main_label_8, lv_color_hex(0xdcdcdc), LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_text_font(ui->Main_label_8, &lv_font_misans_20, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_text_opa(ui->Main_label_8, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_text_letter_space(ui->Main_label_8, 2, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_text_line_space(ui->Main_label_8, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_text_align(ui->Main_label_8, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_bg_opa(ui->Main_label_8, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_pad_top(ui->Main_label_8, 8, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_pad_right(ui->Main_label_8, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_pad_bottom(ui->Main_label_8, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_pad_left(ui->Main_label_8, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_shadow_width(ui->Main_label_8, 0, LV_PART_MAIN | LV_STATE_DEFAULT);

	// Write codes Main_labelCharging
	ui->Main_labelCharging = lv_label_create(ui->Main_MainView_tab_1);
	lv_label_set_text(ui->Main_labelCharging, "0/0");
	lv_label_set_long_mode(ui->Main_labelCharging, LV_LABEL_LONG_WRAP);
	lv_obj_set_pos(ui->Main_labelCharging, 201, 15);
	lv_obj_set_size(ui->Main_labelCharging, 188, 50);
	lv_obj_add_flag(ui->Main_labelCharging, LV_OBJ_FLAG_CLICKABLE);

	// Write style for Main_labelCharging, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
	lv_obj_set_style_border_width(ui->Main_labelCharging, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_radius(ui->Main_labelCharging, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_text_color(ui->Main_labelCharging, lv_color_hex(0x00a1b5), LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_text_font(ui->Main_labelCharging, &lv_font_misans_36, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_text_opa(ui->Main_labelCharging, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_text_letter_space(ui->Main_labelCharging, 2, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_text_line_space(ui->Main_labelCharging, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_text_align(ui->Main_labelCharging, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_bg_opa(ui->Main_labelCharging, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_pad_top(ui->Main_labelCharging, 8, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_pad_right(ui->Main_labelCharging, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_pad_bottom(ui->Main_labelCharging, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_pad_left(ui->Main_labelCharging, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_shadow_width(ui->Main_labelCharging, 0, LV_PART_MAIN | LV_STATE_DEFAULT);

	// Write codes Main_swPDEnable
	ui->Main_swPDEnable = lv_switch_create(ui->Main_MainView_tab_1);
	lv_obj_set_pos(ui->Main_swPDEnable, 114, 306);
	lv_obj_set_size(ui->Main_swPDEnable, 59, 32);

	// Write style for Main_swPDEnable, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
	lv_obj_set_style_bg_opa(ui->Main_swPDEnable, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_bg_color(ui->Main_swPDEnable, lv_color_hex(0x393c47), LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_bg_grad_dir(ui->Main_swPDEnable, LV_GRAD_DIR_NONE, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_border_width(ui->Main_swPDEnable, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_radius(ui->Main_swPDEnable, 20, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_shadow_width(ui->Main_swPDEnable, 0, LV_PART_MAIN | LV_STATE_DEFAULT);

	// Write style for Main_swPDEnable, Part: LV_PART_MAIN, State: LV_STATE_FOCUSED.
	lv_obj_set_style_bg_opa(ui->Main_swPDEnable, 255, LV_PART_MAIN | LV_STATE_FOCUSED);
	lv_obj_set_style_bg_color(ui->Main_swPDEnable, lv_color_hex(0x393c47), LV_PART_MAIN | LV_STATE_FOCUSED);
	lv_obj_set_style_bg_grad_dir(ui->Main_swPDEnable, LV_GRAD_DIR_NONE, LV_PART_MAIN | LV_STATE_FOCUSED);
	lv_obj_set_style_border_width(ui->Main_swPDEnable, 0, LV_PART_MAIN | LV_STATE_FOCUSED);
	lv_obj_set_style_radius(ui->Main_swPDEnable, 26, LV_PART_MAIN | LV_STATE_FOCUSED);
	lv_obj_set_style_shadow_width(ui->Main_swPDEnable, 0, LV_PART_MAIN | LV_STATE_FOCUSED);

	// Write style for Main_swPDEnable, Part: LV_PART_MAIN, State: LV_STATE_DISABLED.
	lv_obj_set_style_bg_opa(ui->Main_swPDEnable, 255, LV_PART_MAIN | LV_STATE_DISABLED);
	lv_obj_set_style_bg_color(ui->Main_swPDEnable, lv_color_hex(0x393c47), LV_PART_MAIN | LV_STATE_DISABLED);
	lv_obj_set_style_bg_grad_dir(ui->Main_swPDEnable, LV_GRAD_DIR_NONE, LV_PART_MAIN | LV_STATE_DISABLED);
	lv_obj_set_style_border_width(ui->Main_swPDEnable, 0, LV_PART_MAIN | LV_STATE_DISABLED);
	lv_obj_set_style_radius(ui->Main_swPDEnable, 26, LV_PART_MAIN | LV_STATE_DISABLED);
	lv_obj_set_style_shadow_width(ui->Main_swPDEnable, 0, LV_PART_MAIN | LV_STATE_DISABLED);

	// Write style for Main_swPDEnable, Part: LV_PART_INDICATOR, State: LV_STATE_CHECKED.
	lv_obj_set_style_bg_opa(ui->Main_swPDEnable, 255, LV_PART_INDICATOR | LV_STATE_CHECKED);
	lv_obj_set_style_bg_color(ui->Main_swPDEnable, lv_color_hex(0x393c47), LV_PART_INDICATOR | LV_STATE_CHECKED);
	lv_obj_set_style_bg_grad_dir(ui->Main_swPDEnable, LV_GRAD_DIR_NONE, LV_PART_INDICATOR | LV_STATE_CHECKED);
	lv_obj_set_style_border_width(ui->Main_swPDEnable, 0, LV_PART_INDICATOR | LV_STATE_CHECKED);

	// Write style for Main_swPDEnable, Part: LV_PART_INDICATOR, State: LV_STATE_FOCUSED.
	lv_obj_set_style_bg_opa(ui->Main_swPDEnable, 255, LV_PART_INDICATOR | LV_STATE_FOCUSED);
	lv_obj_set_style_bg_color(ui->Main_swPDEnable, lv_color_hex(0x393c47), LV_PART_INDICATOR | LV_STATE_FOCUSED);
	lv_obj_set_style_bg_grad_dir(ui->Main_swPDEnable, LV_GRAD_DIR_NONE, LV_PART_INDICATOR | LV_STATE_FOCUSED);
	lv_obj_set_style_border_width(ui->Main_swPDEnable, 0, LV_PART_INDICATOR | LV_STATE_FOCUSED);

	// Write style for Main_swPDEnable, Part: LV_PART_INDICATOR, State: LV_STATE_DISABLED.
	lv_obj_set_style_bg_opa(ui->Main_swPDEnable, 255, LV_PART_INDICATOR | LV_STATE_DISABLED);
	lv_obj_set_style_bg_color(ui->Main_swPDEnable, lv_color_hex(0x5a6173), LV_PART_INDICATOR | LV_STATE_DISABLED);
	lv_obj_set_style_bg_grad_dir(ui->Main_swPDEnable, LV_GRAD_DIR_NONE, LV_PART_INDICATOR | LV_STATE_DISABLED);
	lv_obj_set_style_border_width(ui->Main_swPDEnable, 0, LV_PART_INDICATOR | LV_STATE_DISABLED);

	// Write style for Main_swPDEnable, Part: LV_PART_KNOB, State: LV_STATE_DEFAULT.
	lv_obj_set_style_bg_opa(ui->Main_swPDEnable, 255, LV_PART_KNOB | LV_STATE_DEFAULT);
	lv_obj_set_style_bg_color(ui->Main_swPDEnable, lv_color_hex(0x00a1b5), LV_PART_KNOB | LV_STATE_DEFAULT);
	lv_obj_set_style_bg_grad_dir(ui->Main_swPDEnable, LV_GRAD_DIR_NONE, LV_PART_KNOB | LV_STATE_DEFAULT);
	lv_obj_set_style_border_width(ui->Main_swPDEnable, 0, LV_PART_KNOB | LV_STATE_DEFAULT);
	lv_obj_set_style_radius(ui->Main_swPDEnable, 20, LV_PART_KNOB | LV_STATE_DEFAULT);

	// Write style for Main_swPDEnable, Part: LV_PART_KNOB, State: LV_STATE_FOCUSED.
	lv_obj_set_style_bg_opa(ui->Main_swPDEnable, 255, LV_PART_KNOB | LV_STATE_FOCUSED);
	lv_obj_set_style_bg_color(ui->Main_swPDEnable, lv_color_hex(0x00a1b5), LV_PART_KNOB | LV_STATE_FOCUSED);
	lv_obj_set_style_bg_grad_dir(ui->Main_swPDEnable, LV_GRAD_DIR_NONE, LV_PART_KNOB | LV_STATE_FOCUSED);
	lv_obj_set_style_border_width(ui->Main_swPDEnable, 0, LV_PART_KNOB | LV_STATE_FOCUSED);
	lv_obj_set_style_radius(ui->Main_swPDEnable, 23, LV_PART_KNOB | LV_STATE_FOCUSED);

	// Write style for Main_swPDEnable, Part: LV_PART_KNOB, State: LV_STATE_DISABLED.
	lv_obj_set_style_bg_opa(ui->Main_swPDEnable, 255, LV_PART_KNOB | LV_STATE_DISABLED);
	lv_obj_set_style_bg_color(ui->Main_swPDEnable, lv_color_hex(0x2F92DA), LV_PART_KNOB | LV_STATE_DISABLED);
	lv_obj_set_style_bg_grad_dir(ui->Main_swPDEnable, LV_GRAD_DIR_NONE, LV_PART_KNOB | LV_STATE_DISABLED);
	lv_obj_set_style_border_width(ui->Main_swPDEnable, 0, LV_PART_KNOB | LV_STATE_DISABLED);
	lv_obj_set_style_radius(ui->Main_swPDEnable, 10, LV_PART_KNOB | LV_STATE_DISABLED);

	// Write codes 分控
	ui->Main_MainView_tab_2 = lv_tabview_add_tab(ui->Main_MainView, "分控");
	lv_obj_t *Main_MainView_tab_2_label = lv_label_create(ui->Main_MainView_tab_2);
	lv_label_set_text(Main_MainView_tab_2_label, "");

	// Write codes Main_label_9
	ui->Main_label_9 = lv_label_create(ui->Main_MainView_tab_2);
	lv_label_set_text(ui->Main_label_9, "分区赛后支持本项功能。\n祝分区赛取得好成绩！");
	lv_label_set_long_mode(ui->Main_label_9, LV_LABEL_LONG_WRAP);
	lv_obj_set_pos(ui->Main_label_9, 51, 34);
	lv_obj_set_size(ui->Main_label_9, 348, 110);

	// Write style for Main_label_9, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
	lv_obj_set_style_border_width(ui->Main_label_9, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_radius(ui->Main_label_9, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_text_color(ui->Main_label_9, lv_color_hex(0xffffff), LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_text_font(ui->Main_label_9, &lv_font_misans_24, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_text_opa(ui->Main_label_9, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_text_letter_space(ui->Main_label_9, 2, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_text_line_space(ui->Main_label_9, 6, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_text_align(ui->Main_label_9, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_bg_opa(ui->Main_label_9, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_pad_top(ui->Main_label_9, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_pad_right(ui->Main_label_9, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_pad_bottom(ui->Main_label_9, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_pad_left(ui->Main_label_9, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_shadow_width(ui->Main_label_9, 0, LV_PART_MAIN | LV_STATE_DEFAULT);

	// Write codes 选项
	ui->Main_MainView_tab_3 = lv_tabview_add_tab(ui->Main_MainView, "选项");
	lv_obj_t *Main_MainView_tab_3_label = lv_label_create(ui->Main_MainView_tab_3);
	lv_label_set_text(Main_MainView_tab_3_label, "");

	// Write codes Main_label_10
	ui->Main_label_10 = lv_label_create(ui->Main_MainView_tab_3);
	lv_label_set_text(ui->Main_label_10, "分区赛后支持本项功能。\n祝分区赛取得好成绩！");
	lv_label_set_long_mode(ui->Main_label_10, LV_LABEL_LONG_WRAP);
	lv_obj_set_pos(ui->Main_label_10, 51, 34);
	lv_obj_set_size(ui->Main_label_10, 348, 110);

	// Write style for Main_label_10, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
	lv_obj_set_style_border_width(ui->Main_label_10, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_radius(ui->Main_label_10, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_text_color(ui->Main_label_10, lv_color_hex(0xffffff), LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_text_font(ui->Main_label_10, &lv_font_misans_24, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_text_opa(ui->Main_label_10, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_text_letter_space(ui->Main_label_10, 2, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_text_line_space(ui->Main_label_10, 6, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_text_align(ui->Main_label_10, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_bg_opa(ui->Main_label_10, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_pad_top(ui->Main_label_10, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_pad_right(ui->Main_label_10, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_pad_bottom(ui->Main_label_10, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_pad_left(ui->Main_label_10, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_shadow_width(ui->Main_label_10, 0, LV_PART_MAIN | LV_STATE_DEFAULT);

	// Write codes Main_label_3
	ui->Main_label_3 = lv_label_create(ui->Main);
	lv_label_set_text(ui->Main_label_3, "就绪飞镖数");
	lv_label_set_long_mode(ui->Main_label_3, LV_LABEL_LONG_WRAP);
	lv_obj_set_pos(ui->Main_label_3, 529, 10);
	lv_obj_set_size(ui->Main_label_3, 113, 41);

	// Write style for Main_label_3, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
	lv_obj_set_style_border_width(ui->Main_label_3, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_radius(ui->Main_label_3, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_text_color(ui->Main_label_3, lv_color_hex(0xdcdcdc), LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_text_font(ui->Main_label_3, &lv_font_misans_20, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_text_opa(ui->Main_label_3, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_text_letter_space(ui->Main_label_3, 2, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_text_line_space(ui->Main_label_3, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_text_align(ui->Main_label_3, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_bg_opa(ui->Main_label_3, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_pad_top(ui->Main_label_3, 8, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_pad_right(ui->Main_label_3, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_pad_bottom(ui->Main_label_3, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_pad_left(ui->Main_label_3, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_shadow_width(ui->Main_label_3, 0, LV_PART_MAIN | LV_STATE_DEFAULT);

	// Write codes Main_labelReady
	ui->Main_labelReady = lv_label_create(ui->Main);
	lv_label_set_text(ui->Main_labelReady, "0/0");
	lv_label_set_long_mode(ui->Main_labelReady, LV_LABEL_LONG_WRAP);
	lv_obj_set_pos(ui->Main_labelReady, 651, 1);
	lv_obj_set_size(ui->Main_labelReady, 146, 53);

	// Write style for Main_labelReady, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
	lv_obj_set_style_border_width(ui->Main_labelReady, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_radius(ui->Main_labelReady, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_text_color(ui->Main_labelReady, lv_color_hex(0x00a1b5), LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_text_font(ui->Main_labelReady, &lv_font_misans_36, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_text_opa(ui->Main_labelReady, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_text_letter_space(ui->Main_labelReady, 2, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_text_line_space(ui->Main_labelReady, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_text_align(ui->Main_labelReady, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_bg_opa(ui->Main_labelReady, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_pad_top(ui->Main_labelReady, 8, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_pad_right(ui->Main_labelReady, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_pad_bottom(ui->Main_labelReady, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_pad_left(ui->Main_labelReady, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_shadow_width(ui->Main_labelReady, 0, LV_PART_MAIN | LV_STATE_DEFAULT);

	// Write codes Main_labelTitle
	ui->Main_labelTitle = lv_label_create(ui->Main);
	lv_label_set_text(ui->Main_labelTitle, "3SE飞镖中控 Ver.1.0");
	lv_label_set_long_mode(ui->Main_labelTitle, LV_LABEL_LONG_WRAP);
	lv_obj_set_pos(ui->Main_labelTitle, 37, 10);
	lv_obj_set_size(ui->Main_labelTitle, 338, 35);

	// Write style for Main_labelTitle, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
	lv_obj_set_style_border_width(ui->Main_labelTitle, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_radius(ui->Main_labelTitle, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_text_color(ui->Main_labelTitle, lv_color_hex(0xffffff), LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_text_font(ui->Main_labelTitle, &lv_font_misans_24, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_text_opa(ui->Main_labelTitle, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_text_letter_space(ui->Main_labelTitle, 2, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_text_line_space(ui->Main_labelTitle, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_text_align(ui->Main_labelTitle, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_bg_opa(ui->Main_labelTitle, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_pad_top(ui->Main_labelTitle, 8, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_pad_right(ui->Main_labelTitle, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_pad_bottom(ui->Main_labelTitle, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_pad_left(ui->Main_labelTitle, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_shadow_width(ui->Main_labelTitle, 0, LV_PART_MAIN | LV_STATE_DEFAULT);

	// Write codes Main_msgbox
	static const char *Main_msgbox_btns[] = {""};
	ui->Main_msgbox = lv_msgbox_create(ui->Main, "提示警告", "总开命令已发送关无线充电打开关闭错误警告", Main_msgbox_btns, false);
	lv_obj_set_size(lv_msgbox_get_btns(ui->Main_msgbox), 0, 30);
	lv_obj_set_pos(ui->Main_msgbox, 840, 300);
	lv_obj_set_size(ui->Main_msgbox, 430, 100);
	lv_obj_add_flag(ui->Main_msgbox, LV_OBJ_FLAG_HIDDEN);

	// Write style for Main_msgbox, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
	lv_obj_set_style_bg_opa(ui->Main_msgbox, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_bg_color(ui->Main_msgbox, lv_color_hex(0x967000), LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_bg_grad_dir(ui->Main_msgbox, LV_GRAD_DIR_NONE, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_border_width(ui->Main_msgbox, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_radius(ui->Main_msgbox, 13, LV_PART_MAIN | LV_STATE_DEFAULT);
	lv_obj_set_style_shadow_width(ui->Main_msgbox, 0, LV_PART_MAIN | LV_STATE_DEFAULT);

	// Write style state: LV_STATE_DEFAULT for &style_Main_msgbox_extra_title_main_default
	static lv_style_t style_Main_msgbox_extra_title_main_default;
	ui_init_style(&style_Main_msgbox_extra_title_main_default);

	lv_style_set_text_color(&style_Main_msgbox_extra_title_main_default, lv_color_hex(0xf9f3ec));
	lv_style_set_text_font(&style_Main_msgbox_extra_title_main_default, &lv_font_misans_18);
	lv_style_set_text_opa(&style_Main_msgbox_extra_title_main_default, 255);
	lv_style_set_text_letter_space(&style_Main_msgbox_extra_title_main_default, 0);
	lv_style_set_text_line_space(&style_Main_msgbox_extra_title_main_default, 10);
	lv_obj_add_style(lv_msgbox_get_title(ui->Main_msgbox), &style_Main_msgbox_extra_title_main_default, LV_PART_MAIN | LV_STATE_DEFAULT);

	// Write style state: LV_STATE_DEFAULT for &style_Main_msgbox_extra_content_main_default
	static lv_style_t style_Main_msgbox_extra_content_main_default;
	ui_init_style(&style_Main_msgbox_extra_content_main_default);

	lv_style_set_text_color(&style_Main_msgbox_extra_content_main_default, lv_color_hex(0xffffff));
	lv_style_set_text_font(&style_Main_msgbox_extra_content_main_default, &lv_font_misans_24);
	lv_style_set_text_opa(&style_Main_msgbox_extra_content_main_default, 255);
	lv_style_set_text_letter_space(&style_Main_msgbox_extra_content_main_default, 0);
	lv_style_set_text_line_space(&style_Main_msgbox_extra_content_main_default, 20);
	lv_obj_add_style(lv_msgbox_get_text(ui->Main_msgbox), &style_Main_msgbox_extra_content_main_default, LV_PART_MAIN | LV_STATE_DEFAULT);

	// Write style state: LV_STATE_DEFAULT for &style_Main_msgbox_extra_btns_items_default
	static lv_style_t style_Main_msgbox_extra_btns_items_default;
	ui_init_style(&style_Main_msgbox_extra_btns_items_default);

	lv_style_set_bg_opa(&style_Main_msgbox_extra_btns_items_default, 255);
	lv_style_set_bg_color(&style_Main_msgbox_extra_btns_items_default, lv_color_hex(0x5a6173));
	lv_style_set_bg_grad_dir(&style_Main_msgbox_extra_btns_items_default, LV_GRAD_DIR_NONE);
	lv_style_set_border_width(&style_Main_msgbox_extra_btns_items_default, 0);
	lv_style_set_radius(&style_Main_msgbox_extra_btns_items_default, 10);
	lv_style_set_text_color(&style_Main_msgbox_extra_btns_items_default, lv_color_hex(0xffffff));
	lv_style_set_text_font(&style_Main_msgbox_extra_btns_items_default, &lv_font_misans_12);
	lv_style_set_text_opa(&style_Main_msgbox_extra_btns_items_default, 255);
	lv_obj_add_style(lv_msgbox_get_btns(ui->Main_msgbox), &style_Main_msgbox_extra_btns_items_default, LV_PART_ITEMS | LV_STATE_DEFAULT);

	// The custom code of Main.

	// Update current screen layout.
	lv_obj_update_layout(ui->Main);
}
